package edu.gdkm.tactics;

import edu.gdkm.tactics.behavior.impl.FlyNoWay;
import edu.gdkm.tactics.behavior.impl.Quack;
import edu.gdkm.tactics.parent.AbstractDuck;

/**
 *
 */
public class ModelDuck extends AbstractDuck {

    @Override
    public void display() {
        System.out.println("I'm a model duck");
    }

    public ModelDuck(){
        // 模型鸭子原先不会飞
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void swim() {
        super.swim();
    }
}
